<template>
    <div>
        <h1>登录</h1>
        <button @click="handlerLogin">登录</button>
    </div>
</template>

<script>
export default {

    methods:{
        handlerLogin() {
            sessionStorage.setItem("user","admin")
            this.$router.push({
                name:"home"
            })
        }
    }
};
</script>

<style>

</style>
